﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Benefit.Models.Sys
{
    public class OperatorStatus
    {
        /// <summary>
        /// 服务器状态
        /// </summary>
        private static int Status { get; set; }
        ///// <summary>
        ///// 得到交易员状态
        ///// </summary>
        ///// <returns></returns>
        //public static int GetOperatorStatus(double operatorDayProfit)
        //{
        //    int Status = 0;
        //    if (operatorDayProfit > 50000)
        //    {
        //        Status = Convert.ToInt32(_OperatorStatus.VeryGood);
        //    }
        //    else if (operatorDayProfit <= 50000 && operatorDayProfit > 3000)
        //    {
        //        Status = Convert.ToInt32(_OperatorStatus.Good);
        //    }
        //    else if (operatorDayProfit <= 3000 && operatorDayProfit > -2000)
        //    {
        //        Status = Convert.ToInt32(_OperatorStatus.Poor);
        //    }
        //    else if (operatorDayProfit <= -2000 && operatorDayProfit > -5000)
        //    {
        //        Status = Convert.ToInt32(_OperatorStatus.VeryPoor);
        //    }
        //    else
        //    {
        //        Status = Convert.ToInt32(_OperatorStatus.MostPoor);

        //    }
        //    return Status;
        //}


        //public static string GetOperatorStatus(int status)
        //{
        //    string Status = "";
        //    if (status == Convert.ToInt32(_OperatorStatus.VeryGood))
        //    {
        //        Status = "非常好";
        //    }
        //    if (status == Convert.ToInt32(_OperatorStatus.Good))
        //    {
        //        Status = "较好";
        //    }
        //    if (status == Convert.ToInt32(_OperatorStatus.Poor))
        //    {
        //        Status = "较差";
        //    }
        //    if (status == Convert.ToInt32(_OperatorStatus.VeryPoor))
        //    {
        //        Status = "非常差";
        //    }
        //    if (status == Convert.ToInt32(_OperatorStatus.MostPoor))
        //    {
        //        Status = "极差";
        //    }
        //    return Status;
        //}
    }
    /// <summary>
    /// 服务器状态枚举
    /// </summary>
    public enum _OperatorStatus : int
    {
        /// <summary>
        /// 非常好
        /// </summary>
        VeryGood = 1,
        /// <summary>
        /// 较好
        /// </summary>
        Good = 2,
        /// <summary>
        /// 较差
        /// </summary>
        Poor = 3,
        /// <summary>
        /// 非常差
        /// </summary>
        VeryPoor = 4,
        /// <summary>
        /// 极差
        /// </summary>
        MostPoor = 5
    }
}
